<div class="bjui-pageContent" >
        <div data-layout-h="0">
                <!-- 内容区 -->
                <form action="{:U('Member/role_set')}" class="pageForm nice-validator n-red" data-loadingmask='false' data-toggle="validate" novalidate="novalidate" data-reload-navtab="true" method="post" >
                        <input type="hidden" name="id" value="{$_GET.id|default=''}" />
                        <input type="hidden" name="rules" id="j_ztree_menus_role" data-tree='j_select_tree_role' value='{$role.rules}'  size="18" readonly >
                        <ul id="j_select_tree_role" class="ztree"  data-toggle="ztree" data-expand-all="true" data-check-enable="true" data-on-check="S_NodeCheck" data-on-click="S_NodeClick">
                                {volist name="rules" id="vo" key='k'}
                                <?php $ks = $k+1024; ?>
                                <li data-id="{$ks}" data-pid="0" {if condition="in_array($ks,$roles)"} data-checked="true" {/if} >{$key}</li>
                                {volist name="vo" id="vi" }
                                <li data-id="{$vi.id}" data-pid="{$ks}" {if condition="in_array($vi['id'],$roles)"} data-checked="true" {/if}>{$vi.title}</li>
                                {notempty name='vi.child'}
                                {volist name="vi.child" id="vv"}
                                <li data-id="{$vv.id}" data-pid="{$vi.id}" {if condition="in_array($vv['id'],$roles)"} data-checked="true" {/if}>{$vv.title}</li>
                                {/volist}
                                {/notempty}
                                {/volist}

                                {/volist}
                        </ul>
                </form>
        </div>

</div>
<div class="bjui-pageFooter" border='none'>
        <ul>
                <li><button type="button" class="btn btn-close">关闭</button></li>
                <li><button type="submit" class="btn btn-default">提交</button></li>
        </ul>
</div>